log using "\\file\UsersW$\wrr15\Home\My Documents\My Files\D'HAULTFOEUILLE Files\DATAVERSE FILES\TABLE2.smcl", replace
scalar drop _all
import excel "\\file\UsersW$\wrr15\Home\My Documents\My Files\D'HAULTFOEUILLE Files\DATAVERSE FILES\TABLE1data.xlsx", sheet("Sheet1") firstrow clear
bysort G1: gen t=_n
xtset G1 t
forvalues i = 3(-1)1 {
regress d.Y`i' d.D d.T1 d.T2
scalar Bfd_`i' = _b[d.D]
}
forvalues i = 3(-1)1 {
regress Y`i' D G1 T1 T2
scalar Bfe_`i' = _b[D]
}
scalar list 

log close
